<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <input type="hidden" name="row[id]" value="{$row.id}">
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('昵称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('公司名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[company]" type="text" value="{$row.company|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('职位')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[position]" type="text" value="{$row.position|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('手机号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('邮箱')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[mail]" type="text" value="{$row.mail|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">微信二维码:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[wx_img]" type="text" value="{$row.wx_img|htmlentities}"  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatar"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatar"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-avatar" style="width: 100%;"></ul>
        </div>
    </div>
    {if $row.type == 2}
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">公司logo:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatars" data-rule="" class="form-control" size="50" name="row[company_logo]" type="text" value="{$row.company_logo|htmlentities}"  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatars" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatars"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatars" class="btn btn-primary fachoose" data-input-id="c-avatars" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatars"></span>
                </div>
                
                <ul class="row list-inline plupload-preview" id="p-avatars" style="width: 100%;"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('企业介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-nickname"  style="height: 120px;"  class="form-control" name="row[qy_introduce]" type="text" >{$row.qy_introduce|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">设计案例库:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatara" data-rule="" class="form-control" size="50" name="row[case_imgs]" type="text" value="{$row.case_imgs|htmlentities}"  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatara" class="btn btn-danger plupload" data-input-id="c-avatara" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatara"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatara" class="btn btn-primary fachoose" data-input-id="c-avatara" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatara"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-avatara" style="width: 100%;"></ul>
        </div>
    </div>
    {/if}
    
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('个人介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-nickname"  style="height: 120px;"  class="form-control" name="row[introduce]" type="text" >{$row.introduce|htmlentities}</textarea>
        </div>
    </div>
    {if $row.type == 3}
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('店铺介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-nickname"  style="height: 120px;"  class="form-control" name="row[dp_introduce]" type="text" >{$row.dp_introduce|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('企业介绍')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-nickname"  style="height: 120px;"  class="form-control" name="row[qy_introduce]" type="text" >{$row.qy_introduce|htmlentities}</textarea>
        </div>
    </div>
   
    {/if}
    {if $row.type != 1}
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">服务图片:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avatarm" data-rule="" class="form-control" size="50" name="row[serve_imgs]" type="text" value="{$row.serve_imgs|htmlentities}"  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatarm" class="btn btn-danger plupload" data-input-id="c-avatarm" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avatarm"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatarm" class="btn btn-primary fachoose" data-input-id="c-avatarm" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avatarm"></span>
                </div>
                <ul class="row list-inline plupload-preview" id="p-avatarm" style="width: 100%;"></ul>
        </div>
    </div>
    <!-- <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('服务名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[serve_titile]" type="text" value="{$row.serve_titile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('服务价格')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input    class="form-control" name="row[serve_price]" type="text" value="{$row.serve_price|htmlentities}">
        </div>
    </div> -->
    {/if}

    
   
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
        </div>
    </div>
</form>
